package org.example.demo14_observe;

public class Light implements ResponseDevice{
    @Override
    public void update(int temperature) {
        if (temperature > 50) {
            System.out.println("The light is on.");
        } else {
            System.out.println("The light is off.");
        }
    }
}
